package utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.TimeUnit;

/**
 * Instruction：
 * Author：@author MaLi
 */
public class MUtils {
    private static Logger logger = LoggerFactory.getLogger(MUtils.class);
    /**
     * 延时指定时间, 单位为秒
     *
     * @param timeout 延迟时间
     */
    public static void timeDelay(long timeout) {
        //加延时
        try {
            TimeUnit.SECONDS.sleep(timeout);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }

    /**
     *
     * @param msg 打印信息
     */
    public static void print(String msg) {
        logger.info(msg);
    }
}
